/*****************************************************************
File name   : at_fibocom_cmd_table.h
Author      : weizheng
Version     : Ver1.0.0
Date        : 2017-11-08
Description : ����atָ��
Others      :
History     :
    1. Date:
       Author: ID:
       Modification:
    2. ...
*****************************************************************/
#ifndef __AT_FIBOCOM_CMD_TABLE_H
#define __AT_FIBOCOM_CMD_TABLE_H

#include "netmodule_def.h"

// 网络模块状态
typedef enum
{
    // 配置中
    STA_DEFAULT = 0,
    STA_WAITSIMCARD_READY,
    STA_SET_ATE0,
    STA_CHECK_SIM,
    STA_SET_CREG,
    STA_CHECK_CREG,
    STA_SET_APN,
    STA_GET_APN,
    STA_CHECK_MIPCALL,
    STA_SET_MIPCALL,
    STA_SET_MIPOPEN,
    STA_CHECK_MIPOPEN,
    STA_SET_MIPCLOSE,

    // 已建立连接
    STA_CHECK_RSSI,
    STA_CHECK_NETSTA,
    STA_TCP_READY,
    STA_SEND_DATA_APPLY,
    STA_SEND_DATA_READY,
} NET_FIBOCOM_CONFIG_STA_EN;


// 控制块
typedef struct __NET_FIBOCOM_CB_t
{
    NET_FIBOCOM_CONFIG_STA_EN state;
    NET_NET_CMD_MNG_t mng;
} NET_Fibocom_CB_t;

//at指令问题标志以及超时  20220509
typedef struct __NET_PROBLEM_t
{
    uint8_t mipxoff_in_flag;//收到MIPXOFF之后的标志
    uint8_t mipstat_in_flag;
    uint16_t mipxoff_sta_cnt;
    uint16_t mipstat_sta_cnt;
    uint16_t at_timeout_cnt;//无at指令超时
} NET_Problem_t;


extern const char AT_CREG_CHECK[];
extern const char AT_CREG_SET[];
extern const char AT_MIPCALL_SET[];
extern const char AT_MIPCALL_CHECK[];
extern const char AT_MIPOPEN_SET[];
extern const char AT_MIPOPEN_CHECK[];
extern const char AT_MIPSEND[];
extern const char AT_MIPCLOSE_SET[];
extern const char AT_GTUSIM_CHECK[];
extern const char AT_COPS_SET[];
extern const char AT_COPS_CHECK[];
extern const char AT_GTCCINFO_CHECK[];

/* receive */
extern const char AT_CREG_CHECK_ACK[];
extern const char AT_CREG_SET_ACK[];
extern const char AT_MIPCALL_SET_ACK[];
extern const char AT_MIPODM_SET_ACK[];
extern const char AT_MIPCLOSE_ACK[];

#endif













